<h1>Listing trips</h1>

<table>
  <tr>
    <th>Tri country</th>
    <th>Tri city</th>
    <th>Tri start date</th>
    <th>Tri end date</th>
    <th>Tri shared</th>
    <th>Tri status</th>
	<th>Tri lodging</th>
  </tr>

<% @trips.each do |trip| %>
  <tr>
    <td><%=h trip.tri_country %></td>
    <td><%=h trip.tri_city %></td>
    <td><%=h trip.tri_start_date %></td>
    <td><%=h trip.tri_end_date %></td>
    <td><%=h trip.tri_shared %></td>
    <td><%=h trip.tri_status %></td>
	<td><%=h trip.tri_lodging %></td>
    <td><%= link_to 'Show', trip %></td>
    <td><%= link_to 'Edit', edit_trip_path(trip) %></td>
    <td><%= link_to 'Destroy', trip, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New trip', new_trip_path %>